Automatic source code reduction

نویسندگان

  • Jirí Divis
  • Ondrej Bojar
چکیده

The aim of this paper is to introduce Reductor, a program that automatically removes unused parts of the source code of valid programs written in the Mercury language. Reductor implements two main kinds of reductions: statical reduction and dynamical reduction. In the statical reduction, Reductor exploits semantic analysis of the Melbourne Mercury Compiler to find routines which can be removed from the program. Dynamical reduction of routines additionally uses Mercury Deep Profiler and some sample input data for the program to remove unused contents of the program routines. Reductor modifies the sources of the program in a way, which keeps the formatting of the original program source so that the reduced code is further

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Test Cases Selection Based on Source Code Features Extraction

Extracting valuable information from source code automatically was the subject of many research papers. Such information can be used for document traceability, concept or feature extraction, etc. In this paper, we used an Information Retrieval (IR) technique: Latent Semantic Indexing (LSI) for the automatic extraction of source code concepts for the purpose of test cases’ reduction. We used and...

متن کامل

ارزیابی نرم‌افزارهای جامع کد منبع باز مدیریت کتابخانه: تحلیل مقایسه‌ای PhpMyLibrary و Koha

Open source softwares are those which permit execution, copy, read, distribution, and improvement of the software without any restrictions. Also, automatic library systems can manage library functions. Commercial library sofwares are very expensive. Therefore, open source softwares can be appropriate alternatives for automatic library systems. In addition to providing the general concept of sou...

متن کامل

POET: a scripting language for applying parameterized source-to-source program transformations

We present POET, a scripting language designed for applying advanced program transformations to code in arbitrary programming languages as well as building adhoc translators between these languages. We have used POET to support a large number of compiler optimizations, including loop interchange, parallelization, blocking, fusion/fission, strength reduction, scalar replacement, SSE vectorizatio...

متن کامل

Automatic Generation of Java Code from UML Diagrams using UJECTOR

In recent years, the significance of automated generation of object-oriented code from UML diagrams has increased due to its benefits, such as, cost reduction and accuracy. Consistency Checking between UML diagrams, and ensuring accuracy, maintainability, efficiency, and completeness of the generated code are the main concerns in this area. This paper extends our work on a tool called UJECTOR f...

متن کامل

Effort Reduction by Automatic Code Generation

The emergence of Unified Modelling Language (UML) as a standard for modelling systems has encouraged the use of automated software tools that facilitate the development process from analysis through coding. In our approach UML class diagram is used to generate XML schema and generated xml schema is used for code generation. In our approach UML class diagram is used to generate XML schema and ge...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010